package InterfaceTest;

/**
 * RunTest 测试 Factory 是否正常
 *
 * @author ASUS
 * @version OpenJDK 11
 */
public class RunTest {
  /**
   * main 进行测试调用
   *
   * @param args 命令行参数
   */
  public static void main(String[] args) {
    Factory newFactory = new Factory();

    Cycle uc = newFactory.getCycle("UnCycle");
    uc.doCycle();

    Cycle bc = newFactory.getCycle("BiCycle");
    bc.doCycle();

    Cycle tc = newFactory.getCycle("TriCycle");
    tc.doCycle();

    tc.deCycle();
    bc.deCycle();
    uc.deCycle();
  }
}
